﻿@model Pr0ject0.Models.ReferenceModel

@{
    ViewBag.Title = "Reference";
}

<h2>Reference</h2>

<fieldset>
    <legend>Reference</legend>

    <table>
        <tr>
            <th>
               @Html.DisplayNameFor(model => model.name)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.company)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.title)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.phone)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.isCalled)
            </th>
        </tr>

        <tr>
            <td>
                @Html.DisplayFor(model => model.name)
            </td>
            <td>
                @Html.DisplayFor(model => model.company)
            </td>
            <td>
                @Html.DisplayFor(model => model.title)
            </td>
            <td>
                @Html.DisplayFor(model => model.phone)
            </td>
            <td>
                @Html.DisplayFor(model => model.isCalled)
            </td>
        </tr>
 
</table>
</fieldset>

    <form method= "post" action="@Url.Action("Reference", new { id = Model.RefId })">
        @Html.HiddenFor(model => model.RefId)
        @Html.Hidden("str", "True")
        <input type ="submit" value="Contacted" />
    </form>
    <form method= "post" action="@Url.Action("Reference", new { id = Model.RefId })">
        @Html.HiddenFor(model => model.RefId)
        @Html.Hidden("str", "False")
        <input type="submit" value="Unavailable" />
    </form>

